module.exports = {
	get(node) {
		return document.querySelector(node);
	},
	getall(node) {
		return document.querySelectorAll(node);
	},

	// 主页底部导航渲染
	tabbar(c) {
		document.querySelector(".tabbar").innerHTML = `
        <a href="index.html" class="${c === "index" ? "active" : ""}">
            <i class="iconfont icon-shouye ${
							c === "index" ? "active" : ""
						}"></i>
            首页
        </a>
        <a href="sports_course.html" class="${c === "tabbar" ? "active" : ""}">
            <i class="iconfont icon-xindiantu  ${
							c === "tabbar" ? "active" : ""
						}"></i>
            运动
        </a>
        <a href="mine.html" class="${c === "mine" ? "active" : ""}">
            <i class="iconfont icon-wode ${c === "mine" ? "active" : ""}"></i>
            我的
        </a>
        `;
	},
	// 运动头部导航渲染
	navbar(c) {
		document.querySelector(".navbar").innerHTML = `
            <a href="sports_run.html" class="${
							c === "movement_run" ? "active" : ""
						}">跑步</a>
            <a href="movement_cycling.html" class="${
							c === "movement_cycling" ? "active" : ""
						}">骑行</a>
            <a href="sports_course.html" class="${
							c === "sports_course" ? "active" : ""
						}">课程训练</a>
        `;
	},
};
